
 
 F u n c t i o n :   s c r o l l T o ( d o m E l e m e n t O r C S S S e l e c t o r ,   o b j e c t C o n f i g ,   f u n c t i o n O v e r r i d e ) 
 
 
 
 D e s c r i p t i o n :   S c r o l l s   t o   t h e   s p e c i f i e d   e l e m e n t   u s i n g   a   s m o o t h   s c r o l l   a n i m a t i o n . 
 
 
 
 R e t u r n s :   d o m E l e m e n t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 R e q u i r e s   m o d u l e :   " S m o o t h S c r o l l " 
 
 
 
 N o t e :   T h e   s c r o l l T o ( )   f u n c t i o n   d o e s   n o t   m o v e   k e y b o a r d   f o c u s ,   a n d   m u s t   n o t   b e   u s e d   a s   a   s k i p   l i n k   h a n d l e r   f o r   t h i s   p u r p o s e .   I n s t e a d ,   t h e   s c r o l l T o ( )   f u n c t i o n   i s   i d e a l   w h e n   c o m b i n e d   w i t h   t h e   u s e   o f   a r i a - a c t i v e d e s c e n d a n t ,   w h e n   t h e   r e f e r e n c e d   e l e m e n t   m u s t   b e   s c r o l l e d   i n t o   v i e w ,   b u t   k e y b o a r d   f o c u s   r e m a i n s   o n   t h e   s a m e   e l e m e n t   a s   b e f o r e .   T h e   o b j e c t C o n f i g   p a r a m e t e r   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   o p t i o n s   f o r   t h e   V e l o c i t y   a n i m a t i o n   e f f e c t . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . i m p o r t ( " S m o o t h S c r o l l " ,   {   d e f e r :   t r u e   } ,   f u n c t i o n ( )   { 
 
 
 
     / /   S c r o l l   t o   a   t a r g e t   e l e m e n t . 
 
     $ A . s c r o l l T o ( d o m E l e m e n t ) ; 
 
 
 
     / /   S c r o l l   t o   a   t a r g e t   e l e m e n t   a n d   c h a n g e   t h e   a n i m a t i o n   c o n f i g u r a t i o n   o p t i o n s . 
 
     $ A . s c r o l l T o ( d o m E l e m e n t ,   { 
 
         d u r a t i o n :   7 5 0 , 
 
         e a s i n g :   " e a s e - i n " 
 
     } ) ; 
 
 
 
 } ) ; 
 
 